#!/bin/ksh

dure=60  
while [ -n "$1" ]
do
        if [ "$1" = "-m" ]
        then
                dure=$2
                shift 2
        else
                group="$1"
                print "~~ Processing $1"
                logger -plocal5.notice createmwm source=.*,summary=".*${1}.*",qualifier=NSREXECD,duration=${dure}
                shift 1
        fi
done
print "~~ Waiting for processing \\c"
sleep 30
print "\033[32mDone\033[0m"

